package org.asiaark.developerstudio.framework.struts2;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

/**
 * 抽象基础Action
 * 
 * @author Ivan
 * 
 */
public class AbstractActionSupport extends ActionSupport {
	/**
	 * 返回当前 HttpServletResponse 对象.
	 * 
	 * @return HttpServletResponse
	 */
	protected HttpServletResponse getResponse() {
		return ServletActionContext.getResponse();
	}

	/**
	 * 返回当前 HttpServletRequest 对象.
	 * 
	 * @return HttpServletRequest
	 */
	protected HttpServletRequest getRequest() {
		return ServletActionContext.getRequest();
	}

}
